<?php /* Smarty version 2.6.22, created on 2009-05-27 16:54:47
         compiled from /home/renat/www/clean.ringo/www/control/_templates/templates/edit.tpl */ ?>
<div style="text-align:center;">
   <p><b>Редактирование шаблона:</b></p>
    <form method="POST">
     <input name="mode" value="edit_submit" type="hidden">
     <input name="id" value="<?php echo $this->_tpl_vars['tpl']['id']; ?>
" type="hidden">
    <table border="0" align="center">
        <tr><td align="left">Имя шаблона</td><td><input type="text" name="alias" maxlength="64" value="<?php echo $this->_tpl_vars['tpl']['alias']; ?>
"/></td></tr>
        <tr><td align="left">Файл .dwt</td><td><select name="template"><?php $_from = $this->_tpl_vars['dwts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?><option value="<?php echo $this->_tpl_vars['d']; ?>
" <?php if ($this->_tpl_vars['tpl']['template'] == $this->_tpl_vars['d']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['d']; ?>
</option><?php endforeach; endif; unset($_from); ?></select></td></tr>
        <tr><td align="left">Родительский шаблон</td><td><select name="parent_id"><option value="0"></option><?php echo $this->_tpl_vars['select']; ?>
</select></td></tr>
        <tr><td colspan="2" align="center"><input type="submit" value="Сохранить"></td></tr>
    </table>
    </form>
    </div>